package com.example.base.app

import android.app.Application
import androidx.core.os.BuildCompat
import com.alibaba.android.arouter.launcher.ARouter
import com.tencent.mmkv.BuildConfig

open class BaseApp : Application() {
    override fun onCreate() {
        super.onCreate()
        if (BuildConfig.DEBUG){
            ARouter.openDebug()
            ARouter.openLog()
        }
        ARouter.init(this)
    }

    override fun onLowMemory() {
        super.onLowMemory()
    }

    override fun onTerminate() {
        super.onTerminate()
    }

}